<?=plugin\laoha\app\common\Template::header($title??'老蟹CMS')?>
<?=plugin\laoha\app\common\Template::nav('default',$active??'/')?>
<div class="container py-3 pb-0">
    <?=plugin\laoha\app\common\Template::bread($bread??'')?>
</div>
<div class="container">
    <div class="row">
        <div class="col-lg-9 mb-4">
            <div class="card shadow-sm mb-3 p-3 rounded-0">
                <div class="card-header bg-white"><h5>收藏的文章</h5></div>
                <?php foreach($data['items'] as $item){ ?>
                <div class="card-body">
                    <h5 class="card-title">
                        <a class="link-underline-light text-black" href="/app/laoha/post/detail?id=<?=$item['id']?>">
                            <?=$item['title']?>
                        </a>
                    </h5>
                    <small class="text-muted ms-1">
                    <i class="far fa-clock"></i>
                        <?=timeTo($item['created_at'])?>&nbsp;&nbsp;&nbsp;&nbsp;
                    <i class="far fa-paper-plane"></i>
                        <?=$item['views']?> 阅读
                    </small>
                </div>
                <?php } ?>
            </div>
            <?=plugin\laoha\app\common\Template::page($data)?>
        </div>
        <div class="col-lg-3 mb-4">
            <div class="card shadow-sm mb-4 rounded-0">
                <?=plugin\laoha\app\common\Template::user($user_id)?>
            </div>
            <div class="card shadow-sm mb-4 rounded-0">
                <?=plugin\laoha\app\common\Template::user_nav($user_id,$url)?>
            </div>            
        </div>
    </div>
</div>
<?=plugin\laoha\app\common\Template::footer()?>